package com.open.capacity.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 意见反馈表，用于记录问卷调查反馈信息，用户发布的意见信息等
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class Suggest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 建议id，主键，自增
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 问卷id
     */
    private Integer paperId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 建议内容
     */
    private String context;

    /**
     * 被建议角色
     */
    private String suggestedRole;

    /**
     * 数据状态1:正常2:逻辑删除
     */
    private Integer status;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 调查对象
     */
    private String respondents;
}

